﻿@model MobileSales.Model.Documents.Document


@{
    View.Title = Strings.Documents + " - " + Strings.Details;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Strings.Documents &nbsp;&raquo;&nbsp; @Strings.Details</h2>

<fieldset>
    <legend>@Strings.Fields</legend>

    <div class="display-label">@ModelStrings.DocumentNo</div>
    <div class="display-field">@Model.DocumentNo</div>

    <div class="display-label">@ModelStrings.CreationDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.CreationDate)</div>

    <div class="display-label">@ModelStrings.PaymentDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.PaymentDate)</div>

    <div class="display-label">@ModelStrings.Client</div>
    <div class="display-field">
        @Model.ClientName<br />
        @Model.ClientName2<br />
        @Model.ClientStreet<br />
        @Model.ClientZipcode, @Model.ClientCity<br />
        @ModelStrings.Nip : @Model.ClientNip<br />
        @ModelStrings.Phone : @Model.ClientPhone<br />
        @ModelStrings.Fax : @Model.ClientFax<br />
        @ModelStrings.Info : @Model.ClientInfo<br />
    </div>

    <div class="display-label">@ModelStrings.IsPaid</div>
    <div class="display-field">@(Model.IsPaid ? Strings.Yes : Strings.No)</div>
</fieldset>
<p>    

    @Html.ActionLink(Strings.BackToList, "Index", null, new { @class = "icon-button prev-icon" })

</p>
